package com.hdl.server.host;

import com.hdl.server.context.Context;
import java.util.ArrayList;
import java.util.List;

/**
 * 类名 Host
 * 描述 TODO
 *
 * @author hedonglin
 * @version 1.0
 * @date 2020/5/31 17:46
 */
public class Host {
    /**
     * 应用存放目录
     */
    private String appBaseDir;

    /**
     * 应用名称: 这里就实现一个Host对应多个应用
     */
    private List<Context> context = new ArrayList<>();

    public String getAppBaseDir() {
        return appBaseDir;
    }

    public void setAppBaseDir(String appBaseDir) {
        this.appBaseDir = appBaseDir;
    }

    public Host(String appBaseDir, List<Context> context) {
        this.appBaseDir = appBaseDir;
        this.context = context;
    }

    public List<Context> getContext() {
        return context;
    }

    public void setContext(List<Context> context) {
        this.context = context;
    }
}
